package com.example.demo.model;

import lombok.Data;

import java.util.List;

@Data
public class PageResponse <T>{
    private List<T> listInfo;
    private Integer count;
    private PageRequest pageRequest;

    public PageResponse() {
    }

    public PageResponse(List<T> listInfo, Integer count, PageRequest pageRequest) {
        this.listInfo = listInfo;
        this.count = count;
        this.pageRequest = pageRequest;
    }
}
